<!--#include file="pjson.asp"-->
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>中心管理</title>
<%
easp.include "h.asp"
%>
</head>
<body><br>
    <div class="layui-card">
      <div class="layui-form layui-card-header layuiadmin-card-header-auto">
        <div class="layui-form-item">
          <div class="layui-inline">
            <label class="layui-form-label">中心名</label>
            <div class="layui-input-block">
              <input type="text" name="cn" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>

          <div class="layui-inline">
            <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="c_search">
              <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
            </button>
			  <button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="c_add">新增中心</button>			
			  <button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="c_del_sel">删除所选</button>			
          </div>
        </div>
      </div>

      <div class="layui-card-body">
		<script type="text/html" id="barDemo">
			<a class="layui-btn layui-btn-xs" lay-event="c_edit">修改</a>
			<a class="layui-btn layui-btn-xs" lay-event="c_prj">加入项目</a>
			<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="c_del">删除</a>
		</script>
		<table id="c" lay-filter="c"></table>
			<br>
      </div>
    </div>

  <script src="../../../layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '../../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'useradmin', 'table'], function(){
    var $ = layui.$
    ,form = layui.form
    ,admin = layui.admin	
    ,table = layui.table;
    form.render();
	table.render({
        elem: '#c',
        url: layui.setter.base + 'lib/reg.asp?action=c_list',
        cols: [[
		{type:'checkbox'},		
        {
            field: 'id',
            title: 'ID',
            width: 60,
            sort: true,
			hide:true
        },
        {field: 'cn',title: '中心名',width: 120},	
        {
            fixed: 'right',
            width: 260,
            align: 'center',
            toolbar: '#barDemo'
        }]],
        id: 'c',
        limit: 10,
        page: true,
        height: 475
    });
	<%
	Easp.Echo myjs1("add1.js","tn|c,title|新增中心")
	Easp.Echo myjs1("edit2.js","tn|c,title|编辑中心,zdy1|c_prj,zdy1_title|选择中心参加的项目：")
	%> 
  });
  </script>
</body>
</html>